package com.blate.dogxiao.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Blate
 * Created in 2021/4/21
 */
public class UserBean
        implements Parcelable {

    public String avatar;
    public String nickname;
    public String phoneNumber;
    public int gender;

    public UserBean() {
    }

    protected UserBean(Parcel in) {
        avatar = in.readString();
        nickname = in.readString();
        phoneNumber = in.readString();
        gender = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(avatar);
        dest.writeString(nickname);
        dest.writeString(phoneNumber);
        dest.writeInt(gender);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel in) {
            return new UserBean(in);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };
}
